﻿<UserControl x:Class="PJ.Presentation.Partner.CustomerInfoView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:model="clr-namespace:PJ.Presentation.Partner;assembly=PJ.Presentation.PartnerModel"            
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Style x:Key="TitleText" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="Franklin Gothic"/>
            <Setter Property="FontSize" Value="26"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="Background" Value="#FF77B6EB"/>
            <Setter Property="Foreground" Value="#FFFFFFFF"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="5,2,5,2"/>
        </Style>
        <Style x:Key="ContentText" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="Franklin Gothic"/>
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="Foreground" Value="#FF77B6EB"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="5,2,5,2"/>
        </Style>
        <Style x:Key="TitleBorder" TargetType="Border">
            <Setter Property="CornerRadius" Value="10"/>
            <Setter Property="Background" Value="#FF77B6EB"/>
            <Setter Property="Margin" Value="5,2,5,2"/>
        </Style>
    </UserControl.Resources>
    <!--
   <UserControl.DataContext>
        <model:CustomerModel Address="3, rue des Ecoles 67870 Bischoffsheim France" GlobalId="2822-05210-452" Id="PIQJER" Name="Piquot Jérôme" Phone="+33 3 88 48 71 31"/>
    </UserControl.DataContext> 
    -->
    <StackPanel  Orientation="Horizontal">
        <Border Style="{StaticResource TitleBorder}">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Path=Id}" Style="{StaticResource TitleText}" />
                <TextBlock Text="{Binding Path=Name}" Style="{StaticResource TitleText}"/>
            </StackPanel>
        </Border>
        <Border>
            <StackPanel>
                <TextBlock Style="{StaticResource ContentText}" Text="{Binding Path=Address}"/>
                <TextBlock Style="{StaticResource ContentText}" Text="{Binding Path=Phone}"/>
            </StackPanel>
        </Border>
    </StackPanel>
</UserControl>
